package crp.core.security.domain.models;

import crp.core.user.domain.models.UserEntity;

import java.util.List;

public class AuthorizeCommand {
    private final UserEntity user;
    private final List<RoleEntity> roles;

    public AuthorizeCommand(UserEntity user, List<RoleEntity> roles) {
        this.user = user;
        this.roles = roles;
    }

    public UserEntity getUser() {
        return user;
    }

    public List<RoleEntity> getRoles() {
        return roles;
    }
}
